import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.asset
// 分页查询
export function queryPageList(query) {
  return post(BASE_URL + '/assetsSecDomin/list', query)
}
export function entityTree(id) {
  return get(BASE_URL + '/assetsSecDomin/treeselect', { id })
}
export function getOrgTypeList(itemType) {
  return get(BASE_URL + '/dictItems/listByType', { itemType })
}

export function addDatas(query) {
  return post(BASE_URL + '/assetsSecDomin/save', query)
}

export function queryById(id) {
  return get(BASE_URL + '/assetsSecDomin/detail', { id })
}
export function editDatas(query) {
  return post(BASE_URL + '/assetsSecDomin/update', query)
}

export function deleteDatas(ids) {
  return get(BASE_URL + '/assetsSecDomin/deleteBatch', { ids })
}

export function networkList(ids) {
  return get(BASE_URL + '/assetsSecDomin/networkList', { ids })
}
